package com.zyj.myapplication.Service;

import com.zyj.myapplication.Javabean.Club;
import com.zyj.myapplication.Javabean.Train;
import com.zyj.myapplication.Javabean.TrainInfo;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by owner on 2017/9/26.
 */

public interface TrainService {
    //获取训练列表
    @GET("lists/mod/training")
    Call<List<Train>> getTrainList();
    //获取线下训练
    @GET("lists/mod/train")
    Call<List<TrainInfo>> gettrainList();
    //获取训练详细信息
    @GET("get/mod/{mod}/SessionID/{SessionID}/id/{id}")
    Call<TrainInfo> getTraininfo(
            @Path("SessionID") String SessionID,
            @Path("mod") String mod,
            @Path("id") String id
    );
    //线下训练列表
    @GET("lists/mod/{mod}/SessionID/{SessionID}/Degree/{Degree}")
    Call<List<TrainInfo>> getallTrain(
            @Path("SessionID") String SessionID,
            @Path("mod") String mod,
            @Path("Degree") String Degree
    );
    //训练报名
    @GET("create/mod/{mod}/participantname/{participantname}/train_id/{train_id}/participanttel/{participanttel}/adultnum/{adultnum}/" +
            "paytype/{paytype}/pay/{pay}/paynotice/{paynotice}/userid/{userid}/SessionID/{SessionID}")
    Call<Integer> signTrain(
            @Path("mod") String mod,
            @Path("participantname") String participantname,
            @Path("train_id") String train_id,
            @Path("participanttel") String participanttel,
            @Path("adultnum") String adultnum,
            @Path("paytype") String paytype,
            @Path("pay") String pay,
            @Path("paynotice") String paynotice,
            @Path("userid") int userid,
            @Path("SessionID") String SessionID
    );
}
